home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Encyclopedia 13
/
Network Support Encyclopedia (Novell Inc.)(1991).ISO
/
download
/
ctrlbk.txt
< prev
next >
Wrap
Text File
|
1989-06-20
|
1KB
|
32 lines
Actually, just "hook"ing interrupt 01BH (the Ctrl-BREAK) interrupt will not
provide adequate protection. A Ctrl-C is NOT a Ctrl-BREAK, therefore it goes
into the normal keyboard buffer, which is read through INT 016H. You'd have to
hook both interrupts (or just disable the keyboard interrupt at the 8259) to do
what you're trying to do. Actually, the 8259 approach is real simple if you
want to give it a try. The programs would look something like this:
KBOFF.COM - Disable keyboard input
Cli
In Al,021H
Or AL,002H
Out 021H,AL
Sti
Mov AX,04C00H
Int 021H
Int 020H
KBON.COM - Enable keyboard input
Cli
In AL,021H
And AL,0FDH
Out 021H,AL
Sti
Mov AX,04C00H
Int 021H
Int 020H
Just remember that is something fails between KBOFF and KBON, you won't be
able to do anything about it, not even Ctrl-Alt-DEL!